package com.apexcode.system.service.exam;

import com.apexcode.system.domain.exam.dto.ExamAddDTO;
import com.apexcode.system.domain.exam.dto.ExamEditDTO;
import com.apexcode.system.domain.exam.dto.ExamQueryDTO;
import com.apexcode.system.domain.exam.dto.ExamQuestionAddDTO;
import com.apexcode.system.domain.exam.vo.ExamDetailVO;
import com.apexcode.system.domain.exam.vo.ExamVO;

import java.util.List;

/**
 * @ClassName IExamService
 * @Description
 * @Author ZJX
 * @Date 2025/1/29 17:01
 * @Version 1.0
 **/
public interface IExamService {
    List<ExamVO> list(ExamQueryDTO examQueryDTO);

    int add(ExamAddDTO examAddDTO);

    boolean questionAdd(ExamQuestionAddDTO examQuestionAddDTO);

    ExamDetailVO detail(Long examId);

    int edit(ExamEditDTO examEditDTO);

    int delete(Long examId);

    int questionDelete(Long examId, Long questionId);

    int publish(Long examId);

    int cancelPublish(Long examId);
}
